﻿<%@ Page Title="Email Delivery Details Report" Language="C#" MasterPageFile="~/masterpage.master"
	AutoEventWireup="true" CodeFile="EmailDeliveryDetailsReport.aspx.cs" Inherits="EmailDeliveryDetailsReport" %>

<%@ Register Src="ucLetters.ascx" TagName="ucLetters" TagPrefix="uc2" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
	<link rel="stylesheet" type="text/css" href="css/admin.css" />
	<script language="javascript" type="text/javascript">
	    var controldivname = 'ctl00_ContentPlaceHolder1_rgEmailDeliveryDetailsReport';
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
	<table width="95%">
		<tr>
			<td colspan="2">
				<div class="wrap4">
					<div class="abcd">
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<td valign="middle">
									<div style="margin-bottom: 2px;">
										<asp:ImageButton ID="ibtnPrevDate" runat="server" ImageUrl="~/Images/back_arrow.png"
											Width="12" OnClick="ibtnPrevDate_Click" />
										<asp:Label ID="lblDate" runat="server" Style="margin-bottom: 2px;"></asp:Label>
										<asp:ImageButton ID="ibtnNextDate" runat="server" ImageUrl="~/Images/forward_arrow.png"
											Width="12" OnClick="ibtnNextDate_Click" />
									</div>
									<asp:HiddenField ID="hdnPrevDate" runat="server" />
									<asp:HiddenField ID="hdnNextDate" runat="server" />
								</td>
								<td valign="middle">
									<asp:RadioButtonList ID="rbtnStatus" runat="server" RepeatDirection="Horizontal"
										AutoPostBack="True" OnSelectedIndexChanged="rbtnStatus_SelectedIndexChanged"
										Style="vertical-align: middle; margin-bottom: 5px; height:15px; margin-left:20px;">
										<asp:ListItem Value="-1" Selected="True">All records</asp:ListItem>
										<asp:ListItem Value="1">Success</asp:ListItem>
										<asp:ListItem Value="0">Failed</asp:ListItem>
									</asp:RadioButtonList>
								</td>
								<td valign="middle">
									<div style="margin-bottom: 5px; height:15px;">
										<div style="float: left">
											Legend:</div>
										<div style="background-color: red; float: left; margin-left: 3px; padding:0 2px; color: White; font-weight:bold;">
											Invalid Email</div>
										<div style="background-color: green; float: left; margin-left: 3px; padding:0 2px; color: White; font-weight:bold;">
											Valid Email</div>
									</div>
								</td>
								<td align="right" valign="middle">
									<asp:ImageButton ImageUrl="Images/excel_icon2.png" ID="lbExport" runat="server" OnClick="lbExport_Click"
										ToolTip="Export to Excel" style="margin-bottom: 5px;"></asp:ImageButton>
								</td>
							</tr>
						</table>
						<div class="clr">
						</div>
					</div>
				</div>
			</td>
		</tr>
	</table>
	<table style="width: 900px;">
		<tr>
			<td align="center">
				<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
				</telerik:RadScriptManager>
				<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
					<AjaxSettings>
						<telerik:AjaxSetting AjaxControlID="rgEmailDeliveryDetailsReport">
							<UpdatedControls>
								<telerik:AjaxUpdatedControl ControlID="rgEmailDeliveryDetailsReport" />
							</UpdatedControls>
						</telerik:AjaxSetting>
					</AjaxSettings>
				</telerik:RadAjaxManager>
				<telerik:RadGrid runat="server" ID="rgEmailDeliveryDetailsReport" Width="900px" AllowPaging="True"
					AllowSorting="True" PageSize="20" AutoGenerateColumns="False" 
					OnNeedDataSource="rgEmailDeliveryDetailsReport_NeedDataSource"
					onpageindexchanged="radGrid_PageIndexChanged" 
					onpagesizechanged="radGrid_PageSizeChanged"
					GridLines="Horizontal" OnItemCreated="reportGrid_ItemCreated">
					<ClientSettings>
						<Scrolling AllowScroll="True" SaveScrollPosition="true" UseStaticHeaders="True">
						</Scrolling>
					</ClientSettings>
					<HeaderStyle BackColor="#060606" Font-Bold="True" Height="15px" Wrap="True" Font-Size="9"
						HorizontalAlign="Center" />
					<ItemStyle BackColor="Silver" />
					<AlternatingItemStyle BackColor="LightGray" />
					<MasterTableView Width="100%">
						<Columns>
							<telerik:GridBoundColumn DataField="STUDENT_ID" HeaderText="Student ID" ReadOnly="true"
								ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-HorizontalAlign="Center"
								ItemStyle-Width="100" HeaderStyle-Width="100" />
							<telerik:GridHyperLinkColumn DataNavigateUrlFields="ID" UniqueName="LASTFIRST"
								DataNavigateUrlFormatString="~/WeeklyProgressReport.aspx?id={0}&reportType=0"
								HeaderText="Student Name" DataTextField="LASTFIRST" ItemStyle-Width="200" HeaderStyle-Width="200"
								ItemStyle-HorizontalAlign="Left" Target="_blank" />
							<telerik:GridBoundColumn DataField="BANV_EMAIL" HeaderText="BANV Email" ReadOnly="true"
								ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-Width="200"
								HeaderStyle-Width="200" ItemStyle-HorizontalAlign="Left" ItemStyle-ForeColor="White" ItemStyle-Font-Bold="true" />
							<telerik:GridBoundColumn DataField="PERSONAL_EMAIL" HeaderText="Personal Email" ReadOnly="true"
								ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-Width="200"
								HeaderStyle-Width="200" ItemStyle-HorizontalAlign="Left" ItemStyle-ForeColor="White" ItemStyle-Font-Bold="true" />
							<telerik:GridBoundColumn DataField="PARENT_EMAIL" HeaderText="Parent’s Email" ReadOnly="true"
								ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-Width="200"
								HeaderStyle-Width="200" ItemStyle-HorizontalAlign="Left" ItemStyle-ForeColor="White" ItemStyle-Font-Bold="true" />
						</Columns>
						<PagerStyle Mode="NextPrevNumericAndAdvanced" />
					</MasterTableView>
				</telerik:RadGrid>
			</td>
		</tr>
	</table>
</asp:Content>
